import request from '@/utils/request';

export async function getDepartmentTreeByRole(params) {
  return request('/user/getDepartmentTreeByRole', {
    params,
  });
}

export async function getDepartmentChildInfo(params) {
  return request('/department/getDepartmentChildInfo', {
    params,
  });
}

export async function updateDepartStatus(params) {
  return request('/department/updateDepartStatus', {
    method: 'POST',
    params,
  });
}
